package com.dews.information.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * 专业对象 dews_subject
 *
 * @author qingfeng
 * @date 2024-11-15
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class SubjectSaveDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "部门学院Id")
    @NotNull(message = "部门学院Id不能为空")
    private Long depId;

    @ApiModelProperty(value = "专业名称")
    @NotBlank(message = "专业名称不能为空")
    private String subjectName;

    @ApiModelProperty(value = "专业负责人Id")
    @NotNull(message = "专业负责人Id不能为空")
    private Long directorId;

    @ApiModelProperty(value = "专业代码")
    @NotBlank(message = "专业代码不能为空")
    private String subjectCode;

    @ApiModelProperty(value = "是否启用：0-未启用  1-启用")
    @NotNull(message = "是否启用不能为空")
    private Integer isEnable;
}
